<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\api\controller;

/**
 * 公共基础接口控制器
 */
class Common extends ApiBase
{
    
    /**
     * 登录接口
     */
    public function login()
    {
        
        return $this->apiReturn($this->logicCommon->login($this->param));
    }
    
    /**
     * 修改密码接口
     */
    public function changePassword()
    {
        
        return $this->apiReturn($this->logicCommon->changePassword($this->param));
    }
    
    /**
     * 友情链接
     */
    public function getBlogrollList()
    {
        
        return $this->apiReturn($this->logicCommon->getBlogrollList($this->param));
    }
    /***
    *员工接口
    **/
     public function getWaiterList()
    {
        
        return $this->apiReturn($this->logicWaiter->getWaiterList($this->param));
    }
    /***
    *订单接口
    **/
     public function getOrderList()
    {
        
        return $this->apiReturn($this->logicOrder->getOrderList($this->param));
    }
    /***
    *菜单接口
    **/
     public function getMenusList()
    {
        
        return $this->apiReturn($this->logicMenus->getMenusList($this->param));
    }
}
